package com.myhost.utils;

import java.util.HashMap;

import com.myhost.model.Person;

public class HostApplication {

	private static HostApplication sharedApplication;
	private static int id;
	private Person person;
	private HashMap<String, Person> persons = new HashMap<String, Person>();

	private HostApplication() {
	}

	public static HostApplication getApplication() {
		if (sharedApplication == null) {
			sharedApplication = new HostApplication();
		}
		return sharedApplication;
	}

	public static int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Person getPerson() {
		return person;
	}

	public void setPerson(Person person) {
		this.person = person;
	}

	public HashMap<String, Person> getPersons() {
		return persons;
	}

	public void setPersons(HashMap<String, Person> persons) {
		this.persons = persons;
	}

	
}
